package com.shaokel.service;

import com.shaokel.pojo.Blog;
import com.shaokel.pojo.Tag;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author 少丶客
 * @ClassName TagService
 * @Description TODO
 * @Date 2020/6/26 12:45
 * @Vesion 1.0
 */
public interface TagService {

    //增加Tag
    Tag savaTag(Tag tag);

    //删除Tag
    void deleteTag(Long id);

    //更新Tag
    Tag updateTag(Long id ,Tag tag);

    //查找Tag
    Tag getTag(Long id);

    //分页查询Tag
    Page<Tag> listTag(Pageable pageable);

    //根据名称查找Tag
    Tag getTagByName(String name);

    List<Tag> listTag();

    List<Tag> listTag(String ids);

    List<Tag> listTagTop(Integer size);


}